﻿package mortal.game.view.guide.guideUse
{
    import com.mui.controls.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.alertwins.*;
    import mortal.game.view.common.item.*;

    public class GuideUsePetEggWin extends CustomAlertWin
    {
        protected var _item:BaseItem;
        protected var _txtName:GTextFiled;

        public function GuideUsePetEggWin(param1:Number, param2:Number)
        {
            super(param1, param2);
            return;
        }// end function

        public function setPetEgg(param1:ItemData) : void
        {
            this._item.itemData = param1;
            this._item.isShowToolTip = false;
            this._txtName.htmlText = param1.itemInfo.htmlName;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._item.dispose(param1);
            this._item = null;
            this._txtName.dispose(param1);
            this._txtName = null;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._item = UIFactory.baseItem(80, 110, 44, 44, prompt);
            this._item.isShowLock = true;
            var _loc_1:* = GlobalStyle.textFormatBai;
            _loc_1.color = 48123;
            _loc_1.size = 14;
            _loc_1.bold = true;
            this._txtName = UIFactory.gTextField("", 130, 118, 200, 20, prompt, _loc_1);
            return;
        }// end function

        override protected function get myWidth() : Number
        {
            return 280;
        }// end function

        override protected function get myHeight() : Number
        {
            return 200;
        }// end function

    }
}
